<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><{:C('site_name')}></title>
<meta name="keywords" content="<{:C('keyword')}>" />
<meta name="description" content="<{:C('content')}>" />
<link rel="stylesheet" href="<{:STATICS}>/css/bootstrap.min.css" type="text/css" media="all" />
<link rel="stylesheet" href="<{:STATICS}>/css/bootstrap-responsive.min.css" type="text/css" media="all" />
<link rel="stylesheet" href="<{:RES}>/css/iframe.css" type="text/css"/>
<link rel="stylesheet" href="<{:STATICS}>/uploadify/uploadify.css" type="text/css"/>
</head>
<script type="text/javascript" src="<{:STATICS}>/js/jquery.min.js"></script>
<script type="text/javascript" src="<{:STATICS}>/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<{:STATICS}>/js/jquery.artDialog.js?skin=aero"></script>
<script type="text/javascript" src="<{:STATICS}>/js/iframeTools.js"></script>
<script type="text/javascript" src="<{:STATICS}>/js/jquery.form.min.js"></script>

<body style="padding:0px; margin:0px;">
<TABLE class="table table-hover table-condensed" border="0" cellSpacing="0" cellPadding="0" width="100%" style="font-size:12px;">
  <THEAD>
	<tr>
	  <TH>名称</TH>  
	  <TH width=100>操作</TH>
	</tr>
  </THEAD>
  <TBODY>             
	<volist name="list" id="vo">
	<tr>
	  <td><{$vo.name}></td>
	  <td>
	  <a href="<{$vo.imageUrl}>" target="_blank">图片</a> | <a href="<{$vo.imageLink}>" target="_blank">链接</a> | <a href="###" onclick="returnHomepage('<{$vo.name}>_<{$vo.id}>')">选中</a>
	  </td>
	</tr>
	</volist>
  </TBODY>
</TABLE>
<div class="row-fluid">
	<div class="pagination"><{$page}></div>
</div>

<script>
var domid=art.dialog.data('domid');
// 返回数据到主页面
function returnHomepage(url){

	var origin = artDialog.open.origin;
	var dom = origin.document.getElementById(domid);
	var domsrcid=domid+'_src';
	if(origin.document.getElementById(domsrcid)){
	origin.document.getElementById(domsrcid).src=url;
	}
	var str= new Array(); //定义一数组 
	str=url.split("_"); //字符分割 
	var str = '<div id="aID'+str[1]+'">'+str[0]+' <input type="hidden" name="articleID[]" class="px" value="'+str[1]+'" /> <a href="javascript:removeDiv('+str[1]+')">删除</a></div>';
	
	dom.innerHTML=dom.innerHTML+str;
	setTimeout("art.dialog.close()", 100 )
}
</script>
</body>
</html>
